#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__title__ = ''
__author__ = 'liugenxian'
__mtime__ = 2017/3/11 0011
"""
import requests

def get_all_cookie():
    """
    I used the requests library to get some cookies from a website, but I can only get the cookies from the Response, how to get the cookies from the Request? Thanks!
    :return:
    """
    r = requests.get('http://qgc.qq.com/314962432/')
    c = r.cookies
    i = c.items()

    for name, value in i:
        print(name, value)

def get_all_cookie1():
    session = requests.Session()
    response = session.get('http://qgc.qq.com/314962432/')
    print(session.cookies.get_dict())

if __name__ == '__main__':
    # get_all_cookie()
    get_all_cookie1()